<?php

namespace App\Kuafu\User\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class PermissionsEnum extends BaseCodeEnum
{
    // APP 权限列表
    const PERMISSION_APP_MYBANK_WALLET = 'app.mybank.wallet';

    // ...


    //我的-我的服务
    const POWER_APP_MT_OPEN_SHOP_ORDER = 'app.my.openShopOrder'; //开店订单
    const POWER_APP_MT_COLLECT         = 'app.my.collect';       //我的收藏 固定
    const POWER_APP_MY_BANK_WALLET     = 'app.mybank.wallet';    //钱包
    const POWER_APP_MY_COUPON          = 'app.my.coupon';        //优惠券 固定
    const POWER_APP_MY_DOWNLOAD        = 'app.my.download';      //下载中心 固定

    const POWER_APP_MY_PRODUCT_SELECT_PROPOSAL = 'app.my.product.select.proposal'; // 选品建议


    const MY_SERVICE_MAPPING = [
        self::POWER_APP_MY_BANK_WALLET     => [
            'action'  => self::POWER_APP_MY_BANK_WALLET,
            'icon'    => 'https://file.51kuafu.com/91/58/9fd6faa093aeda28c829b50106d1be1ba6e808f3daea8e6dea4229c81083.png',
            'name'    => '钱包',
            'new'     => false,
            'newIcon' => 'https://file.51kuafu.com/de/00/5202c4d081b35510172a44ed8ebe587d3a2eff3f009881250c1415c3afce.png',
            'id'      => 'QB',  //唯一标识  不管上述怎么变 id唯一
            'open'    => false
        ],
        self::POWER_APP_MT_OPEN_SHOP_ORDER => [
            'action' => self::POWER_APP_MT_OPEN_SHOP_ORDER,
            'icon'   => 'https://file.51kuafu.com/5c/67/5dd4c7862a5f9526638e0e10c24ea470667c6ecbe6d0f00f4110476c4901.png',
            'name'   => '开店订单',
            'new'    => false,
            'id'     => 'KDDD',  //唯一标识  不管上述怎么变 id唯一
            'open'   => false
        ],
        self::POWER_APP_MY_COUPON          => [
            'action' => self::POWER_APP_MY_COUPON,
            'icon'   => 'https://file.51kuafu.com/f4/f7/2b81f8ef61803d0dec8490273efb14df69778b53e64186a22a4a6d7fa2ab.png',
            'name'   => '优惠券',
            'new'    => false,
            'id'     => 'YHQ',  //唯一标识  不管上述怎么变 id唯一
            'open'   => false
        ],
        self::POWER_APP_MY_DOWNLOAD        => [
            'action' => self::POWER_APP_MY_DOWNLOAD,
            'icon'   => 'https://file.51kuafu.com/bc/71/83b3d1f7a0f4ed6666420c98040f440637a721d8983e1d834e79adab80a1.png',
            'name'   => '下载中心',
            'new'    => false,
            'id'     => 'XZZX',  //唯一标识  不管上述怎么变 id唯一
            'open'   => false
        ],
        self::POWER_APP_MT_COLLECT         => [
            'action' => self::POWER_APP_MT_COLLECT,
            'icon'   => 'https://file.51kuafu.com/4b/a5/bf1bd5aade94771368c1442900962f0a3338c589d114c3af0541198501e0.png',
            'name'   => '我的收藏',
            'new'    => false,
            'id'     => 'WDSC',  //唯一标识  不管上述怎么变 id唯一
            'open'   => false
        ],
//        self::POWER_APP_MY_PRODUCT_SELECT_PROPOSAL         => [
//            'action'  => self::POWER_APP_MY_PRODUCT_SELECT_PROPOSAL,
//            'icon'    => 'https://file.51kuafu.com/1b/2a/7a592dc8eca55591a2084460f396e53ac553d7f8096472c4c3256752b729.png',
//            'name'    => '选品建议',
//            'new'     => false,
//            'id'      => 'XPJY',  //唯一标识  不管上述怎么变 id唯一
//            'open'    => false,
//            'version' => '4.1.6', // APP大于此版本号则显示
//        ],
    ];


    const BOTTOM_BUTTON_INDEX   = 1;
    const BOTTOM_BUTTON_STUDY   = 2;
    const BOTTOM_BUTTON_SHOP    = 3;
    const BOTTOM_BUTTON_MESSAGE = 4;
    const BOTTOM_BUTTON_MY      = 5;


    const BOTTOM_BUTTON_SHOW_TYPE_DEFAULT = 0;  //无
    const BOTTOM_BUTTON_SHOW_TYPE_DOT     = 1;  //点
    const BOTTOM_BUTTON_SHOW_TYPE_NUMBER  = 2;  //数字

    const BOTTOM_BUTTON_MAPPING = [
        self::BOTTOM_BUTTON_INDEX   => [
            'name'       => '首页',
            'id'         => self::BOTTOM_BUTTON_INDEX,
            'showStatus' => false,
            'showType'   => self::BOTTOM_BUTTON_SHOW_TYPE_DEFAULT,
            'num'        => 0,
        ],
        self::BOTTOM_BUTTON_STUDY   => [
            'name'       => '学习',
            'id'         => self::BOTTOM_BUTTON_INDEX,
            'showStatus' => false,
            'showType'   => self::BOTTOM_BUTTON_SHOW_TYPE_DEFAULT,
            'num'        => 0,
        ],
        self::BOTTOM_BUTTON_SHOP    => [
            'name'       => '门店',
            'id'         => self::BOTTOM_BUTTON_INDEX,
            'showStatus' => false,
            'showType'   => self::BOTTOM_BUTTON_SHOW_TYPE_DEFAULT,
            'num'        => 0,
        ],
        self::BOTTOM_BUTTON_MESSAGE => [
            'name'       => '消息',
            'id'         => self::BOTTOM_BUTTON_INDEX,
            'showStatus' => false,
            'showType'   => self::BOTTOM_BUTTON_SHOW_TYPE_DEFAULT,
            'num'        => 0,
        ],
        self::BOTTOM_BUTTON_MY      => [
            'name'       => '我的',
            'id'         => self::BOTTOM_BUTTON_INDEX,
            'showStatus' => false,
            'showType'   => self::BOTTOM_BUTTON_SHOW_TYPE_DOT,
            'num'        => 0,
        ],
    ];
}
